import request from '@/utils/request'
import fileRequest from '@/utils/fileRequest';
/**
 * 获取全部列表
 * @param params
 * @returns {*}
 */
export function getCustomerListApi(params) {
  return request({
    url: '/getBackstageCustomerList',
    method: 'GET',
    params
  })
}
/**
 * ID获取用户信息
 * @param params
 * @returns {*}
 */
export function getCustomerApi(params) {
  return request({
    url: '/getCustomer',
    method: 'GET',
    params
  })
}
/**
 * ID获取用户求职意向
 * @param params
 * @returns {*}
 */
export function getIntentionListApi(params) {
  return request({
    url: '/getIntentionList',
    method: 'GET',
    params
  })
}
/**
 * ID获取用户工作经历
 * @param params
 * @returns {*}
 */
export function getWorkExpListApi(params) {
  return request({
    url: '/getWorkExpList',
    method: 'GET',
    params
  })
}

/**
 * ID获取用户项目经历
 * @param params
 * @returns {*}
 */
export function getItemExpListApi(params) {
  return request({
    url: '/getItemExpList',
    method: 'GET',
    params
  })
}
/**
 * ID获取用户教育经历
 * @param params
 * @returns {*}
 */
export function getEducationListApi(params) {
  return request({
    url: '/getEducationList',
    method: 'GET',
    params
  })
}
/**
 * ID获取用户语言能力
 * @param params
 * @returns {*}
 */
export function findAllByCustomerIdApi(params) {
  return request({
    url: '/findAllByCustomerId',
    method: 'GET',
    params
  })
}
/**
 * ID获取用户优势亮点
 * @param params
 * @returns {*}
 */
export function getAdditionalByIdApi(params) {
  return request({
    url: '/getAdditionalById',
    method: 'GET',
    params
  })
}

/**
 * 查询格街道注册用户数量
 * @param params
 * @returns {*}
 */
export function getCustomerByStreetApi(params) {
  return request({
    url: '/getCustomerByStreet',
    method: 'GET',
    params
  })
}
/**
 * 查询街道花名册
 * @param params
 * @returns {*}
 */
export function getCustomerByStreetIdApi(params) {
  return request({
    url: '/getCustomerByStreetId',
    method: 'GET',
    params
  })
}
/**
 * 导出花名册
 * @param data
 * @returns {*}
 */
export function exportRosterApi(data) {
  return fileRequest({
    url: '/exportRoster',
    method: 'POST',
    data
  })
}
/**
 * 导出企业列表
 * @param data
 * @returns {*}
 */
export function getCompanyExcelApi(data) {
  return fileRequest({
    url: '/getCompanyExcel',
    method: 'POST',
    data
  })
}

/**
 * 导出求职人员列表
 * @param data
 * @returns {*}
 */
export function getIntermediaryExcelApi(data) {
  return fileRequest({
    url: '/getIntermediaryExcel',
    method: 'POST',
    data
  })
}

/**
 * 导出企业花名册
 * @param data
 * @returns {*}
 */
export function exportComRosterApi(data) {
  return fileRequest({
    url: '/exportComRoster',
    method: 'POST',
    responseType:'blob',
    data
  })
}

/**
 * 查询格街道注册企业数量
 * @param params
 * @returns {*}
 */
export function getComByStreetApi(params) {
  return request({
    url: '/getComByStreet',
    method: 'GET',
    params
  })
}
/**
 * 查询格街道注册企业花名册
 * @param params
 * @returns {*}
 */
export function getComByStreetIdApi(params) {
  return request({
    url: '/getComByStreetId',
    method: 'GET',
    params
  })
}

export function getListByIntermediaryApi(params) {
  return request({
    url: '/getListByIntermediary',
    method: 'GET',
    params
  })
}

export function doCustomerHireApi(params) {
  return request({
    url: '/doCustomerHire',
    method: 'GET',
    params
  })
}








